{"componentChunkName":"component---src-templates-tutorial-js","path":"/en/tutorial/DataProcessing/Objects/EditObjects/ReSampleIntro/","webpackCompilationHash":"914b9c398cfaf4eb9829","result":{"data":{"markdownRemark":{"html":"<p><br>\nLine resampling removes vertices from the line or the boundary line of the region while trying to keep the original shape.</p>\n<p>When resampling, whether a vertex will be removed depends on the resample distance and the relationship between the positions of the vertex and its previous and next vertexes.</p>\n<ol>\n<li>The following example illustrates how a polyline containing six vertices is resampled.</li>\n</ol>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iDesktop/static/f690c33185e7aa7552d22abafc6024d6/2dcf9/RTBend_1.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 355px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 37.183098591549296%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA4UlEQVQoz3VQyw7CIBDk///HgyeNRw/WqlHTg+/E+IhWK5Yiywi0pWh0ErKE3XmwTGsNeyyoqhYFAbN7gfY2xvwORBeO7ib2fap4NbeuTH817OCCE4apwkmUby9ThFJYZldE5j2VjbEu1bwoQ4DdkxzB1jBJRXMQpBGbGWsq+NP0yYs6wSIvcMgVhjcz9CD/7Sa1dgHsPRRfZhKtxeDD2Iqz3rqPUcohm1Afu3TCwY4aYWBy26OzSkABl0ktvSv9WHKI755QHJPLEdMMGF9zDDajcof1l8JE//DPMJUvjM8J3jTuJDVhOztIAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"RTBend 1\"\n        title=\"\"\n        src=\"/iDesktop/static/f690c33185e7aa7552d22abafc6024d6/2dcf9/RTBend_1.png\"\n        srcset=\"/iDesktop/static/f690c33185e7aa7552d22abafc6024d6/6a467/RTBend_1.png 210w,\n/iDesktop/static/f690c33185e7aa7552d22abafc6024d6/2dcf9/RTBend_1.png 355w\"\n        sizes=\"(max-width: 355px) 100vw, 355px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ol start=\"2\">\n<li>Make a line passing through vertex 2 and perpendicular to line 12. Find the two points A and B on the perpendicular line whose distances to vertex 2 are equal to the specified resample distance. Judge whether vertex 3 is in the resample area. Remove vertex 2 if vertex 3 is within the resample area; otherwise, keep vertex 2. As we see, vertex 3 is within the resample area, so vertex 2 will be removed.</li>\n</ol>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iDesktop/static/b069f5c4be04ae00a825282c79d5fa4f/04c1a/RTBend_2.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 719px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 26.842837273991655%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAYAAABFA8wzAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA1ElEQVQY01WQ247CMAxE+/+fh/ZltQIEFbCU9N6U3A9uKQUiTezE8YwnWUoJBLJz7zWubuZ8xlT7WK/zFL/xrmdpISMG6t8T5c+e1HXvxuAFTvK4iLDIfQu9xLJ5jxFbKG7bA8fNjv/9H7pq5GUgWi0YSW5ELmeyIM06wLHvKM19JY7ThM45mktBnV+wN4XOS7SqUK3m3A/rND4E2r5BmchVULmEi8+Yy1clcThPeK6vGG2IXmzFyVZaDR16xWkYMN4z2IHCOITrw/IzFmPLrq3orOUBQG6G6aqBlWcAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"RTBend 2\"\n        title=\"\"\n        src=\"/iDesktop/static/b069f5c4be04ae00a825282c79d5fa4f/04c1a/RTBend_2.png\"\n        srcset=\"/iDesktop/static/b069f5c4be04ae00a825282c79d5fa4f/6a467/RTBend_2.png 210w,\n/iDesktop/static/b069f5c4be04ae00a825282c79d5fa4f/635b1/RTBend_2.png 420w,\n/iDesktop/static/b069f5c4be04ae00a825282c79d5fa4f/04c1a/RTBend_2.png 719w\"\n        sizes=\"(max-width: 719px) 100vw, 719px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ol start=\"3\">\n<li>Connect 1 and A, 1 and B and extend the two lines to form the resample area, as shown in green in the figure below.</li>\n</ol>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iDesktop/static/78e3f95cc60bc86b051e7898b9d79895/349f8/RTBend_3.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 346px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 50.86705202312138%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABe0lEQVQoz4WSW3PaMBCF/f9/Td/yls6kfWmHknDxDRPXNmCDScC2fMMXvgpTigPT9mh2VtKszp7VrsINjsdjZ5f9CXleEKU7dtnmfM99zAXKLdkt6QkLd8mL+Q1z8wNR7nsxH8n/EN6qOq0TqroizF2crYFrOxjPFk6kkh2SvwpQ+gT9TKKMWQmTVaYSHmYMRgOG9hNeMmWZmpRVcUd6JexlaNtW/pWPn2kscx0r0dGExSf1gQf9iUU+I8g1mWxO0zR3QpSrPqjrgkDYzIXKJDYY7nXGkc481VinFqb5k4EsWY1V1oVGmDryTf1RIU13IsxCxrspg/2YofR6NMGVxH6m46dGp/Z1PmOxsZglHo/eFDN4kSqrc3N+V6mMgjHfVyaTdxs7dmVWn6QI5R++S4vISkFeZjRtgxCCJD43xEm3PK5e6QTRK/mteCOryt7s8F80x7bzX9cGnz2PbQWHqqYqD9c5vHT7Mlf/sq55nW9JJbebwxc/4Hkz4hdKGQKCmcn0XwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"RTBend 3\"\n        title=\"\"\n        src=\"/iDesktop/static/78e3f95cc60bc86b051e7898b9d79895/349f8/RTBend_3.png\"\n        srcset=\"/iDesktop/static/78e3f95cc60bc86b051e7898b9d79895/6a467/RTBend_3.png 210w,\n/iDesktop/static/78e3f95cc60bc86b051e7898b9d79895/349f8/RTBend_3.png 346w\"\n        sizes=\"(max-width: 346px) 100vw, 346px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ol start=\"4\">\n<li>Vertex 5 and 6 are both within the resample areas, therefore, only vertex 1, 3 and 6 are kept. The polyline after resampling is shown as below.</li>\n</ol>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iDesktop/static/d691861ac909dd718b90fbd830db83ae/fb156/RTBend_4.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 329px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 35.56231003039514%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA2UlEQVQoz22R2QrCMBBF+/8/46vPPipiXZBqoRa0iiCm6Wo1mWuWlq4DA3eSzMnNxEEdRDqp1mRS1rVdFHiwqLc/1DocsqRpiIpCEG4lYf3KMQuXCAuDMXtyALZAjCGVJNxLiR0X2MYCQSYU2HJ8pddMIP3RpFungWjo8yNxUBBXQfy0barfrK82KlHrGqrh3X4D9CIP7juFywleIsC+fbfNGKZGEuQSKwXmnR5nz064lnkzltGNU8Pv6ly53cQSR1aBx0n7ZKDvpM3uCfR+1Lq19TnJML8s8AeoyiT+lYV6vQAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"RTBend 4\"\n        title=\"\"\n        src=\"/iDesktop/static/d691861ac909dd718b90fbd830db83ae/fb156/RTBend_4.png\"\n        srcset=\"/iDesktop/static/d691861ac909dd718b90fbd830db83ae/6a467/RTBend_4.png 210w,\n/iDesktop/static/d691861ac909dd718b90fbd830db83ae/fb156/RTBend_4.png 329w\"\n        sizes=\"(max-width: 329px) 100vw, 329px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>","frontmatter":{"title":"Resample","next":null,"prev":null},"fields":{"path":"content\\en\\tutorial\\DataProcessing\\Objects\\EditObjects\\ReSampleIntro.md","slug":"/en/tutorial/DataProcessing/Objects/EditObjects/ReSampleIntro/","langKey":"en"}}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"/en/tutorial/DataProcessing/Objects/EditObjects/ReSampleIntro/"}}}